import http from '@/utils/http.js'
// 获取商品详情
export function getProductOld(params) {
  return http.get('/app/iap/goods_detail', params)
}
// 获取商品详情
export function getProduct(params) {
  return http.get('/app/iap/goods_detailv3', params)
}
// 获取第三方实操软件
export function getSoft(params) {
  return http.get('/app/third_soft/hkj_url', params)
}
//获取网中网的登录后跳转
export function getWzwCourse(params) {
  return http.get('/app/wzw/student_login', params)
}
//得到商品评论信息
export function getComment(params) {
  return http.get('/wxpub/api/commentv3', params)
}
// 加入购物车
export function postCart(params) {
  return http.post('/wxpub/shop/cartv2', params)
}
// 获取QA列表
export function getQas(params) {
  return http.get('/wxpub/news/product_qa_list', params)
}
// 提交课程疑问
export function postQuestion(params, option) {
  return http.post('/wxpub/news/product_question', params, option)
}
export function getCourseAllSubject(params, option) {
  return http.post('wxpub/api/subject_all', params, option)
}

// 免费激活
export function freeActiveCourse(params) {
  return http.post('/wxpub/api/activation', params)
}

// 获取试听视频
export function getaudition(params){
  return http.get('/wxpub/api/product_audition_video',params)
}